package com.note.service.impl;

import com.note.dao.ExpenseListMapper;
import com.note.entity.ExpenseList;
import com.note.service.ExpenseListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by XQ on 2017/6/19.
 */
@Service("ExpenseList")
public class ExpenseListServiceImpl implements ExpenseListService {
    @Autowired
    ExpenseListMapper expenseListMapper;

    @Override
    public void insert(ExpenseList list) {
        expenseListMapper.insert(list);
    }

    @Override
    public ExpenseList selectIdByItemName(String itemName) {
        return expenseListMapper.selectIdByItemName(itemName);
    }

    @Override
    public List<ExpenseList> selectByUserAccount(String userAccount) {
        return expenseListMapper.selectByUserAccount(userAccount);
    }
}
